﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class GameManager : Singleton<GameManager>
{
    public List<GameObject> players = new List<GameObject>();

    public void PlayerEnter(GameObject gObj)
    {
        players.Add(gObj);
    }

    public void PlayerExit(GameObject gObj)
    {
        if (players.Contains(gObj))
            players.Remove(gObj);
    }

    private void Update() {
        if(InputManager.Instance.doResetDown){
            SceneManager.LoadScene(SceneManager.GetActiveScene().name);
        }
    }
}
